3.154 \(\int \frac{\left (2+3 x^2\right ) \sqrt{3+5 x^2+x^4}}{x^2} \, dx\)

Optimal. Leaf size=284 \[ -\frac{\sqrt{x^4+5 x^2+3} \left (2-x^2\right )}{x}+\frac{9 x \left (2 x^2+\sqrt{13}+5\right )}{2 \sqrt{x^4+5 x^2+3}}+\frac{8 \sqrt{\frac{2}{3 \left (5+\sqrt{13}\right )}} \sqrt{\frac{\left (5-\sqrt{13}\right ) x^2+6}{\left (5+\sqrt{13}\right ) x^2+6}} \left (\left (5+\sqrt{13}\right ) x^2+6\right ) F\left (\tan ^{-1}\left (\sqrt{\frac{1}{6} \left (5+\sqrt{13}\right )} x\right )|\frac{1}{6} \left (-13+5 \sqrt{13}\right )\right )}{\sqrt{x^4+5 x^2+3}}-\frac{3 \sqrt{\frac{3}{2} \left (5+\sqrt{13}\right )} \sqrt{\frac{\left (5-\sqrt{13}\right ) x^2+6}{\left (5+\sqrt{13}\right ) x^2+6}} \left (\left (5+\sqrt{13}\right ) x^2+6\right ) E\left (\tan ^{-1}\left (\sqrt{\frac{1}{6} \left (5+\sqrt{13}\right )} x\right )|\frac{1}{6} \left (-13+5 \sqrt{13}\right )\right )}{2 \sqrt{x^4+5 x^2+3}} \]

[Out]

(9*x*(5 + Sqrt[13] + 2*x^2))/(2*Sqrt[3 + 5*x^2 + x^4]) - ((2 - x^2)*Sqrt[3 + 5*x
^2 + x^4])/x - (3*Sqrt[(3*(5 + Sqrt[13]))/2]*Sqrt[(6 + (5 - Sqrt[13])*x^2)/(6 +
(5 + Sqrt[13])*x^2)]*(6 + (5 + Sqrt[13])*x^2)*EllipticE[ArcTan[Sqrt[(5 + Sqrt[13
])/6]*x], (-13 + 5*Sqrt[13])/6])/(2*Sqrt[3 + 5*x^2 + x^4]) + (8*Sqrt[2/(3*(5 + S
qrt[13]))]*Sqrt[(6 + (5 - Sqrt[13])*x^2)/(6 + (5 + Sqrt[13])*x^2)]*(6 + (5 + Sqr
t[13])*x^2)*EllipticF[ArcTan[Sqrt[(5 + Sqrt[13])/6]*x], (-13 + 5*Sqrt[13])/6])/S
qrt[3 + 5*x^2 + x^4]

_______________________________________________________________________________________

Rubi [A]  time = 0.297493, antiderivative size = 284, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16 \[ -\frac{\sqrt{x^4+5 x^2+3} \left (2-x^2\right )}{x}+\frac{9 x \left (2 x^2+\sqrt{13}+5\right )}{2 \sqrt{x^4+5 x^2+3}}+\frac{8 \sqrt{\frac{2}{3 \left (5+\sqrt{13}\right )}} \sqrt{\frac{\left (5-\sqrt{13}\right ) x^2+6}{\left (5+\sqrt{13}\right ) x^2+6}} \left (\left (5+\sqrt{13}\right ) x^2+6\right ) F\left (\tan ^{-1}\left (\sqrt{\frac{1}{6} \left (5+\sqrt{13}\right )} x\right )|\frac{1}{6} \left (-13+5 \sqrt{13}\right )\right )}{\sqrt{x^4+5 x^2+3}}-\frac{3 \sqrt{\frac{3}{2} \left (5+\sqrt{13}\right )} \sqrt{\frac{\left (5-\sqrt{13}\right ) x^2+6}{\left (5+\sqrt{13}\right ) x^2+6}} \left (\left (5+\sqrt{13}\right ) x^2+6\right ) E\left (\tan ^{-1}\left (\sqrt{\frac{1}{6} \left (5+\sqrt{13}\right )} x\right )|\frac{1}{6} \left (-13+5 \sqrt{13}\right )\right )}{2 \sqrt{x^4+5 x^2+3}} \]

Antiderivative was successfully verified.

[In]  Int[((2 + 3*x^2)*Sqrt[3 + 5*x^2 + x^4])/x^2,x]

[Out]

(9*x*(5 + Sqrt[13] + 2*x^2))/(2*Sqrt[3 + 5*x^2 + x^4]) - ((2 - x^2)*Sqrt[3 + 5*x
^2 + x^4])/x - (3*Sqrt[(3*(5 + Sqrt[13]))/2]*Sqrt[(6 + (5 - Sqrt[13])*x^2)/(6 +
(5 + Sqrt[13])*x^2)]*(6 + (5 + Sqrt[13])*x^2)*EllipticE[ArcTan[Sqrt[(5 + Sqrt[13
])/6]*x], (-13 + 5*Sqrt[13])/6])/(2*Sqrt[3 + 5*x^2 + x^4]) + (8*Sqrt[2/(3*(5 + S
qrt[13]))]*Sqrt[(6 + (5 - Sqrt[13])*x^2)/(6 + (5 + Sqrt[13])*x^2)]*(6 + (5 + Sqr
t[13])*x^2)*EllipticF[ArcTan[Sqrt[(5 + Sqrt[13])/6]*x], (-13 + 5*Sqrt[13])/6])/S
qrt[3 + 5*x^2 + x^4]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 25.2566, size = 260, normalized size = 0.92 \[ \frac{9 x \left (2 x^{2} + \sqrt{13} + 5\right )}{2 \sqrt{x^{4} + 5 x^{2} + 3}} - \frac{3 \sqrt{6} \sqrt{\frac{x^{2} \left (- \sqrt{13} + 5\right ) + 6}{x^{2} \left (\sqrt{13} + 5\right ) + 6}} \sqrt{\sqrt{13} + 5} \left (x^{2} \left (\sqrt{13} + 5\right ) + 6\right ) E\left (\operatorname{atan}{\left (\frac{\sqrt{6} x \sqrt{\sqrt{13} + 5}}{6} \right )}\middle | - \frac{13}{6} + \frac{5 \sqrt{13}}{6}\right )}{4 \sqrt{x^{4} + 5 x^{2} + 3}} + \frac{8 \sqrt{6} \sqrt{\frac{x^{2} \left (- \sqrt{13} + 5\right ) + 6}{x^{2} \left (\sqrt{13} + 5\right ) + 6}} \left (x^{2} \left (\sqrt{13} + 5\right ) + 6\right ) F\left (\operatorname{atan}{\left (\frac{\sqrt{6} x \sqrt{\sqrt{13} + 5}}{6} \right )}\middle | - \frac{13}{6} + \frac{5 \sqrt{13}}{6}\right )}{3 \sqrt{\sqrt{13} + 5} \sqrt{x^{4} + 5 x^{2} + 3}} - \frac{\left (- 3 x^{2} + 6\right ) \sqrt{x^{4} + 5 x^{2} + 3}}{3 x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((3*x**2+2)*(x**4+5*x**2+3)**(1/2)/x**2,x)

[Out]

9*x*(2*x**2 + sqrt(13) + 5)/(2*sqrt(x**4 + 5*x**2 + 3)) - 3*sqrt(6)*sqrt((x**2*(
-sqrt(13) + 5) + 6)/(x**2*(sqrt(13) + 5) + 6))*sqrt(sqrt(13) + 5)*(x**2*(sqrt(13
) + 5) + 6)*elliptic_e(atan(sqrt(6)*x*sqrt(sqrt(13) + 5)/6), -13/6 + 5*sqrt(13)/
6)/(4*sqrt(x**4 + 5*x**2 + 3)) + 8*sqrt(6)*sqrt((x**2*(-sqrt(13) + 5) + 6)/(x**2
*(sqrt(13) + 5) + 6))*(x**2*(sqrt(13) + 5) + 6)*elliptic_f(atan(sqrt(6)*x*sqrt(s
qrt(13) + 5)/6), -13/6 + 5*sqrt(13)/6)/(3*sqrt(sqrt(13) + 5)*sqrt(x**4 + 5*x**2
+ 3)) - (-3*x**2 + 6)*sqrt(x**4 + 5*x**2 + 3)/(3*x)

_______________________________________________________________________________________

Mathematica [C]  time = 0.52857, size = 231, normalized size = 0.81 \[ \frac{-i \sqrt{2} \left (9 \sqrt{13}-13\right ) x \sqrt{\frac{-2 x^2+\sqrt{13}-5}{\sqrt{13}-5}} \sqrt{2 x^2+\sqrt{13}+5} F\left (i \sinh ^{-1}\left (\sqrt{\frac{2}{5+\sqrt{13}}} x\right )|\frac{19}{6}+\frac{5 \sqrt{13}}{6}\right )+9 i \sqrt{2} \left (\sqrt{13}-5\right ) x \sqrt{\frac{-2 x^2+\sqrt{13}-5}{\sqrt{13}-5}} \sqrt{2 x^2+\sqrt{13}+5} E\left (i \sinh ^{-1}\left (\sqrt{\frac{2}{5+\sqrt{13}}} x\right )|\frac{19}{6}+\frac{5 \sqrt{13}}{6}\right )+4 \left (x^6+3 x^4-7 x^2-6\right )}{4 x \sqrt{x^4+5 x^2+3}} \]

Warning: Unable to verify antiderivative.

[In]  Integrate[((2 + 3*x^2)*Sqrt[3 + 5*x^2 + x^4])/x^2,x]

[Out]

(4*(-6 - 7*x^2 + 3*x^4 + x^6) + (9*I)*Sqrt[2]*(-5 + Sqrt[13])*x*Sqrt[(-5 + Sqrt[
13] - 2*x^2)/(-5 + Sqrt[13])]*Sqrt[5 + Sqrt[13] + 2*x^2]*EllipticE[I*ArcSinh[Sqr
t[2/(5 + Sqrt[13])]*x], 19/6 + (5*Sqrt[13])/6] - I*Sqrt[2]*(-13 + 9*Sqrt[13])*x*
Sqrt[(-5 + Sqrt[13] - 2*x^2)/(-5 + Sqrt[13])]*Sqrt[5 + Sqrt[13] + 2*x^2]*Ellipti
cF[I*ArcSinh[Sqrt[2/(5 + Sqrt[13])]*x], 19/6 + (5*Sqrt[13])/6])/(4*x*Sqrt[3 + 5*
x^2 + x^4])

_______________________________________________________________________________________

Maple [A]  time = 0.025, size = 225, normalized size = 0.8 \[ x\sqrt{{x}^{4}+5\,{x}^{2}+3}+96\,{\frac{\sqrt{1- \left ( -5/6+1/6\,\sqrt{13} \right ){x}^{2}}\sqrt{1- \left ( -5/6-1/6\,\sqrt{13} \right ){x}^{2}}{\it EllipticF} \left ( 1/6\,x\sqrt{-30+6\,\sqrt{13}},5/6\,\sqrt{3}+1/6\,\sqrt{39} \right ) }{\sqrt{-30+6\,\sqrt{13}}\sqrt{{x}^{4}+5\,{x}^{2}+3}}}-324\,{\frac{\sqrt{1- \left ( -5/6+1/6\,\sqrt{13} \right ){x}^{2}}\sqrt{1- \left ( -5/6-1/6\,\sqrt{13} \right ){x}^{2}} \left ({\it EllipticF} \left ( 1/6\,x\sqrt{-30+6\,\sqrt{13}},5/6\,\sqrt{3}+1/6\,\sqrt{39} \right ) -{\it EllipticE} \left ( 1/6\,x\sqrt{-30+6\,\sqrt{13}},5/6\,\sqrt{3}+1/6\,\sqrt{39} \right ) \right ) }{\sqrt{-30+6\,\sqrt{13}}\sqrt{{x}^{4}+5\,{x}^{2}+3} \left ( 5+\sqrt{13} \right ) }}-2\,{\frac{\sqrt{{x}^{4}+5\,{x}^{2}+3}}{x}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((3*x^2+2)*(x^4+5*x^2+3)^(1/2)/x^2,x)

[Out]

x*(x^4+5*x^2+3)^(1/2)+96/(-30+6*13^(1/2))^(1/2)*(1-(-5/6+1/6*13^(1/2))*x^2)^(1/2
)*(1-(-5/6-1/6*13^(1/2))*x^2)^(1/2)/(x^4+5*x^2+3)^(1/2)*EllipticF(1/6*x*(-30+6*1
3^(1/2))^(1/2),5/6*3^(1/2)+1/6*39^(1/2))-324/(-30+6*13^(1/2))^(1/2)*(1-(-5/6+1/6
*13^(1/2))*x^2)^(1/2)*(1-(-5/6-1/6*13^(1/2))*x^2)^(1/2)/(x^4+5*x^2+3)^(1/2)/(5+1
3^(1/2))*(EllipticF(1/6*x*(-30+6*13^(1/2))^(1/2),5/6*3^(1/2)+1/6*39^(1/2))-Ellip
ticE(1/6*x*(-30+6*13^(1/2))^(1/2),5/6*3^(1/2)+1/6*39^(1/2)))-2*(x^4+5*x^2+3)^(1/
2)/x

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{x^{4} + 5 \, x^{2} + 3}{\left (3 \, x^{2} + 2\right )}}{x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2,x, algorithm="maxima")

[Out]

integrate(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{\sqrt{x^{4} + 5 \, x^{2} + 3}{\left (3 \, x^{2} + 2\right )}}{x^{2}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2,x, algorithm="fricas")

[Out]

integral(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2, x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (3 x^{2} + 2\right ) \sqrt{x^{4} + 5 x^{2} + 3}}{x^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((3*x**2+2)*(x**4+5*x**2+3)**(1/2)/x**2,x)

[Out]

Integral((3*x**2 + 2)*sqrt(x**4 + 5*x**2 + 3)/x**2, x)

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{x^{4} + 5 \, x^{2} + 3}{\left (3 \, x^{2} + 2\right )}}{x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2,x, algorithm="giac")

[Out]

integrate(sqrt(x^4 + 5*x^2 + 3)*(3*x^2 + 2)/x^2, x)